package day1;


public class Test1 {
    public static void main(String[] args) {
//        Student s = new Student("张三", 19, "男", "1000");
//        System.out.println(s.getName());
//        System.out.println(s.getAge());
//        s.setName("李四");
//        System.out.println(s.getName());

        Duration d = new Duration(1, 1, 1);
        int totalSeconds = d.getTotalSeconds();
        System.out.println("totalSeconds = " + totalSeconds);
        //输出 totalSeconds = 3661
        Duration d2 = new Duration(3660);
        int hours = d2.getHours();
        System.out.println("hours = " + hours);//输出 hours = 1
        System.out.println(d2);// 输出 1:1:0

    }
}
